<template>
	<web-view @message="message" v-if="url" :src="url"></web-view>
	<!-- <view class="">
		{{url}}
	</view> -->
</template>

<script>
	export default {
		data() {
			return {
				url: null
			}
		},
		methods: {
			message(e) {
				console.log('接收到消息',event.detail.data)
			}
		},
		onLoad(option) {
			this.url = JSON.parse(decodeURIComponent(option.url));
			console.log(option); 
		}
	}
</script>

<style lang="scss" scoped>

</style>